package edu.netjava.StudentManager;

import java.util.Vector;

import edu.netjava.Student.Student;

public class StudentManagerTest {

	/**
	 * @param args
	 */
	static Vector vec =new Vector();
	public static void main(String[] args) {
		StudentManager sm = new StudentManager(vec);
		java.util.Scanner sca = new java.util.Scanner(System.in);
		boolean isExit=false;
		while(!isExit){
			System.out.println("Now add the student!");
			sm.addStudent(new Student());
			System.out.println("Do you want to continue to add student?y/n");
			if(sca.next().equalsIgnoreCase("n")){
				isExit = true;
			}
			System.out.println("Now the system will println all the student!");
	        sm.printStudent();
		}
	}

}
